-- GENERATED SPELL FOR [Bluegill Raider] --


function spell0_1418(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1418', 5350, 1)
end

function spell1_1418(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1418', 500, 1)
end

function Sorts_1418(pUnit, Event)
local choix_sorts_1418 = math.random(0, 1)
if choix_sorts_1418 == 0 then
pUnit:RegisterEvent('spell0_1418', 1, 1)
end
if choix_sorts_1418 == 1 then
pUnit:RegisterEvent('spell1_1418', 1, 1)
end
end

function mob1418_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1418', math.random(1500, 3000), 1)
end

function mob1418_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1418_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1418_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1418, 1, 'mob1418_Action')
RegisterUnitEvent(1418, 2, 'mob1418_Leave')
RegisterUnitEvent(1418, 3, 'mob1418_Kill')
RegisterUnitEvent(1418, 4, 'mob1418_Die')
